package com.example.communist_app_api.db.dao;

import com.example.communist_app_api.db.pojoDto.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface RoleDao {

    ArrayList<Role> getRoleByRoleId(ArrayList<Integer> roleIdList);

    List<Role> findPage(String roleName);

    void createNewRole(String roleName);

    Role getRoleByRoleName(String roleName);


    Role getRoleBySingleRoleId(Integer roleId);

    void deleteRoleByRoleId(Integer roleId);

    List<Role> getAllRole();

    Integer selectRoleIdByRoleName(String roleName);

    String getRoleNameByUserId(Integer userId);

    Integer getRoleIdByRoleName(String roleName);
}
